package utils

import (
	"fmt"
	"os"
	"path/filepath"
)

func GetDesktopPath() (string, error) {
	homeDir, err := os.UserHomeDir()
	if err != nil {
		return "", fmt.Errorf("获取用户主目录失败: %v", err)
	}
	return filepath.Join(homeDir, "Desktop"), nil
}
